<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddAnnualFeeInformationToOpenShopMainProcess extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('open_shop_main_process', function (Blueprint $table) {
            $table->unsignedInteger('startFeeTime')->default(0)->comment('年费订单开始计算时间');
            $table->unsignedInteger('managePrice')->default(0)->comment('年管理费金额');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('open_shop_main_process', function (Blueprint $table) {
            $table->dropColumn('startFeeTime');
            $table->dropColumn('managePrice');
        });
    }
}
